import request from '@/utils/request'

// 获取我的岗位的工作记录列表
export function getMyWorkRecords(params) {
  const { page = 0, size = 10, status, search = '' } = params || {}
  return request({
    url: '/api/teacher/work-records',
    method: 'get',
    params: {
      page,
      size,
      status,
      search
    }
  })
}

// 创建工作记录
export function createWorkRecord(data) {
  return request({
    url: '/api/teacher/work-records',
    method: 'post',
    data
  })
}

// 删除工作记录
export function deleteWorkRecord(id) {
  return request({
    url: `/api/teacher/work-records/${id}`,
    method: 'delete'
  })
} 